placessidebar: Take a GdkDrag in _set_drop_targets_visible()
authorErnestas Kulik <ernestask@gnome.org>
Tue, 17 Jul 2018 06:31:54 +0000 (09:31 +0300)
committerErnestas Kulik <ernestask@gnome.org>
Tue, 17 Jul 2018 16:19:14 +0000 (19:19 +0300)
commit4b2d63167eac2e3c2de25963da2559b349faeddf
tree664c67dbd18d1469333fdd33b19ca9e5eafb42c3
parent6fe0a8c6b3f51ec953fa59c160b656c91bb65970
placessidebar: Take a GdkDrag in _set_drop_targets_visible()

Since the function is usually called from GtkWidget::drag-{begin,end} handlers,
taking a GdkDrop does not work, especially given that
::drag-action-requested is emitted without checking the type.

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1220
gtk/gtkfilechooserwidget.c
gtk/gtkplacessidebar.c
gtk/gtkplacessidebarprivate.h